package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 包装方案辅料 导入导出辅助模型 */
@Data
public class ProductPackPlanIngredientsExcelPo {

  @ExcelProperty(value = "所属包装方案")
  private String parentIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属包装方案")
  private Long parentId;

  @NotNull(message = "辅料不能为空")
  @ExcelProperty(value = "*辅料")
  private String ingredientsIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*辅料")
  private Long ingredientsId;

  @Size(max = 50, message = "辅料SKU长度不能超过20")
  @ExcelProperty(value = "辅料SKU")
  private String sku;

  @ExcelProperty(value = "数量")
  private Integer num;
}
